import { createApp } from 'vue'

import App from './App.vue'
import store from './store'//vuex相关
import router from './router'//路由组件库
//整体导入 ElementPlus 组件库
import ElementPlus from 'element-plus' //导入 ElementPlus 组件库的所有模块和功能 
import 'element-plus/dist/index.css' //导入 ElementPlus 组件库所需的全局 CSS 样式
import * as ElementPlusIconsVue from '@element-plus/icons-vue' //导入 ElementPlus 组件库中的所有图标


const app = createApp(App)

app.use(router)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.use(ElementPlus) //将 ElementPlus 插件注册到 Vue 应用中
app.use(store)
app.mount('#app')